<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!-- 
	用户登录后的导航栏 、给出退出按钮
	调用servlet中的Logout销毁session
	并重定向到login.jsp
-->
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>509509</title>
	<script src="/ScienceManagement/jquery/jquery-2.1.1.min.js"></script>
    <link href="/ScienceManagement/bootstrap/css/bootstrap.css" type="text/css" rel="stylesheet"/>
    <script src="/ScienceManagement/bootstrap/js/bootstrap.js"></script>
</head>
<body>


<nav class="navbar navbar-default">
  <div class="container-fluid">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="#">科研管理系统</a>
    </div>

    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav">
        <li><a href="/ScienceManagement/GetAllProjects">所有项目</a></li>
        <li><a data-toggle="modal" data-target="#myModal">申请项目</a></li>
        <li><a href="/ScienceManagement/GetAllPapers">所有论文</a></li>
		<li><a data-toggle="modal" data-target="#myModal2">发表论文</a></li>
		 <li><a href="/ScienceManagement/UserGetAllAwards">获奖情况</a></li>
        
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" >申请项目</h4>
      </div>
      <div class="modal-body">
        

<form class="form-horizontal" id="add_xxx" action="/ScienceManagement/GetFormProject">

  <div class="form-group">
    <label for="inputEmail3" class="col-sm-2 control-label">项目编号</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" placeholder="输入项目编号" name="projectSerialNumber">
    </div>
  </div>
    <div class="form-group">
    <label for="inputEmail3" class="col-sm-2 control-label">项目名称</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" placeholder="输入项目名称"  name="projectName">
    </div>
  </div>
  <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">学科类别</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" placeholder="输入学科类别" name="projectCategory">
    </div>
  </div>
    <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">地区</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" placeholder="输入地区" name="district">
    </div>
  </div>
    <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">负责人</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" placeholder="输入负责人" name="projectLeader">
    </div>
  </div>
    <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">经费</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" placeholder="输入项目经费" name="projectExpenditure">
    </div>
  </div>
</form>



      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
        <button type="submit" class="btn add_xx btn-success" data-dismiss="modal" >提交</button>

      </div> 
    </div>
  </div>
</div>
<div class="modal fade" id="myModal2" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" >发表论文</h4>
      </div>
      <div class="modal-body">
        

<form class="form-horizontal" id="pub_item" action="/ScienceManagement/GetFormPaper">
  <div class="form-group">
    <label for="inputEmail3" class="col-sm-2 control-label">论文标题</label>
    <div class="col-sm-10">
      <input type="text" placeholder="输入论文标题" class="form-control" name="paperTitle">
    </div>
  </div>
    <div class="form-group">
    <label for="inputEmail3" class="col-sm-2 control-label">论文类别</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" placeholder="输入论文类别" name="paperCategory">
    </div>
  </div>
  <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">所属单位</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" placeholder="输入所属单位" name="paperAffiliatedUnit">
    </div>
  </div>
    <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">作者</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" placeholder="输入论文作者"  name="paperAuthor">
    </div>
  </div>


    <div class="form-group">
    <label for="inputEmail3" class="col-sm-2 control-label">引用论文</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" name="ReferencePapers">
    </div>
</form>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
        <button type="submit" class="btn pub_item btn-success" data-dismiss="modal" >提交</button>

      </div> 
    </div>
  </div>
</div>
	<script type="text/javascript">
		$(".add_xx").click(function(){
			$("#add_xxx").submit();
		})	

    $(".pub_item").click(function(){
        $("#pub_item").submit();
    })

	</script>

      </ul>
<ul class="nav navbar-nav navbar-right ">
        <li><a href="/ScienceManagement/logout"><span class="btn btn-danger">退出</span></a></li>
      </ul>
    </div><!-- /.navbar-collapse -->
  </div><!-- /.container-fluid -->

</nav>





</body>
</html>